<template>
  <div>
    <!--    在职时间-->
    <el-form-item label="在职时间" required>
      <el-col :span="11">
        <el-form-item prop="start_date">
          <el-date-picker type="date" placeholder="入职时间" v-model="form2Data.start_date" style="width: 100%;"></el-date-picker>
        </el-form-item>
      </el-col>
      <el-col class="line" :span="2">--</el-col>
      <el-col :span="11">
        <el-form-item prop="end_date">
          <el-date-picker type="date" placeholder="离职时间" v-model="form2Data.end_date" style="width: 100%;"></el-date-picker>
        </el-form-item>
      </el-col>
    </el-form-item>
  </div>
</template>

<script>
export default {
  name: 'Date_',
  props: {
    form2Data: Object
  },
  data() {
    return {}
  }
}
</script>

<style lang="scss" scoped>
.line {
  text-align: center;
}
</style>
